'use strict';
module.exports = (app) => {
  const { STRING, INTEGER, TEXT } = app.Sequelize;
  const History = app.model.define('b_history', {
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    userId: {
      comment: '用户ID',
      type: INTEGER,
      allowNull: false,
    },
    blogId: {
      comment: '博客ID',
      type: INTEGER,
      allowNull: false,
    },
    projectId: {
      comment: '所属项目id',
      type: INTEGER,
      allowNull: false,
    },
  });
  return History;
};
